home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 March / maximum-cd-2000-03.iso / Quake3 Game Source / Q3AGameSource.exe / Main / g_team.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-18  |  2.4 KB  |  47 lines

  1. // Copyright (C) 1999-2000 Id Software, Inc.
  2. //
  3.  
  4. #define CTF_CAPTURE_BONUS        5        // what you get for capture
  5. #define CTF_TEAM_BONUS            0        // what your team gets for capture
  6. #define CTF_RECOVERY_BONUS        1        // what you get for recovery
  7. #define CTF_FLAG_BONUS            0        // what you get for picking up enemy flag
  8. #define CTF_FRAG_CARRIER_BONUS    2        // what you get for fragging enemy flag carrier
  9. #define CTF_FLAG_RETURN_TIME    40000    // seconds until auto return
  10.  
  11. #define CTF_CARRIER_DANGER_PROTECT_BONUS    2    // bonus for fraggin someone who has recently hurt your flag carrier
  12. #define CTF_CARRIER_PROTECT_BONUS            1    // bonus for fraggin someone while either you or your target are near your flag carrier
  13. #define CTF_FLAG_DEFENSE_BONUS                1    // bonus for fraggin someone while either you or your target are near your flag
  14. #define CTF_RETURN_FLAG_ASSIST_BONUS        1    // awarded for returning a flag that causes a capture to happen almost immediately
  15. #define CTF_FRAG_CARRIER_ASSIST_BONUS        2    // award for fragging a flag carrier if a capture happens almost immediately
  16.  
  17. #define CTF_TARGET_PROTECT_RADIUS            1000    // the radius around an object being defended where a target will be worth extra frags
  18. #define CTF_ATTACKER_PROTECT_RADIUS            1000    // the radius around an object being defended where an attacker will get extra frags when making kills
  19.  
  20. #define CTF_CARRIER_DANGER_PROTECT_TIMEOUT    8000
  21. #define CTF_FRAG_CARRIER_ASSIST_TIMEOUT        10000
  22. #define CTF_RETURN_FLAG_ASSIST_TIMEOUT        10000
  23.  
  24. #define CTF_GRAPPLE_SPEED                    750 // speed of grapple in flight
  25. #define CTF_GRAPPLE_PULL_SPEED                750    // speed player is pulled at
  26.  
  27. // Prototypes
  28.  
  29. int OtherTeam(int team);
  30. const char *TeamName(int team);
  31. const char *OtherTeamName(int team);
  32. const char *TeamColorString(int team);
  33.  
  34. void Team_DroppedFlagThink(gentity_t *ent);
  35. void Team_FragBonuses(gentity_t *targ, gentity_t *inflictor, gentity_t *attacker);
  36. void Team_CheckHurtCarrier(gentity_t *targ, gentity_t *attacker);
  37. void Team_InitGame(void);
  38. void Team_ReturnFlag(int team);
  39. void Team_FreeEntity(gentity_t *ent);
  40. gentity_t *SelectCTFSpawnPoint ( team_t team, int teamstate, vec3_t origin, vec3_t angles );
  41. gentity_t *Team_GetLocation(gentity_t *ent);
  42. qboolean Team_GetLocationMsg(gentity_t *ent, char *loc, int loclen);
  43. void TeamplayInfoMessage( gentity_t *ent );
  44. void CheckTeamStatus(void);
  45.  
  46. int Pickup_Team( gentity_t *ent, gentity_t *other );
  47.